<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue指令1</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <!-- 灯灭图片  需求：点击点亮按钮，显示灯亮图片 -->
    <div id="light">
        <img v-bind:src="url"><br>
        <img :src="url"><br>
        <input type="button" value="bt1" v-model="message">{{message}}
    </div>
    
    
    <!-- 刷新后，网页中的灯泡变亮 -->
</body>
<script>
    new Vue({
        el:"#light",
        data:{
            url:"./图片素材/on.gif",
            message:"Hello kogu"
        }
    })
</script>
</html>